﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace EPMAuditing.EventHandlers.RegisterEvents
{
    public partial class UpdatePSConfirm : Form
    {
        public UpdatePSConfirm()
        {
            InitializeComponent();
        }

        public void SetEnrolledEvents(List<EnrolledEvent> enrolledEventList)
        {
            if (listBoxEnable.Items.Count > 0)
                listBoxEnable.Items.Clear();
            if (listBoxDisable.Items.Count > 0)
                listBoxDisable.Items.Clear();

            foreach (EnrolledEvent ee in enrolledEventList)
            {
                if (ee.IsEnabled)
                    listBoxEnable.Items.Add(ee.EventName);
                else
                    listBoxDisable.Items.Add(ee.EventName);
            }
        }

    }
}
